package com.softline.documentsmall.dao;

import com.softline.documentsmall.entity.SpecialDictionary;
import com.softline.documentsmall.entity.SpecialDictionaryVO;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface SpecialDictionaryMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(SpecialDictionary record);

    int insertSelective(SpecialDictionary record);

    SpecialDictionary selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SpecialDictionary record);

    int updateByPrimaryKey(SpecialDictionary record);

    /**
     * 特殊词条列表页
     * @param type
     * @return
     */
    List<SpecialDictionaryVO> listByLanguage(@Param("type") String type);

    /**
     * 查询特殊词条
     * @param dictionaryId
     * @return
     */
    SpecialDictionary select(@Param("dictionaryId") Integer dictionaryId);
}